package com.oa.co.mapper;

import com.oa.co.pojo.Room;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author Lone Ranger
 */
public interface RoomMapper {
    List<Room> getAllRoom();

    List<Room> findRoomByCondition(Room room);

//    Integer addRoom(@Param("room_name") String room_name,@Param("floor") Integer floor,@Param("max_num") Integer max_num,@Param("room_status") int room_status);
    Integer addRoom(Room room);

    Integer deleteRoom(Integer room_id);

    Integer updateRoom(Room room);

    Integer deleteRoomMulti(List<Room> list);
}
